package com.fnzn.entranceGuard.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * IC设备关联表
 * </p>
 *
 * @author JokerGao
 * @since 2018-08-17
 */
@TableName("guard_ic_device")
public class GuardIcDevice extends Model<GuardIcDevice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * IC信息表主键ID
     */
    @TableField("ic_info_id")
    private String icInfoId;

    /**
     * guard_device表主键ID
     * @return
     */
    @TableField("device_id")
    private Integer deviceId;

    /**
     * 状态(0：同步中；1：同步成功；2：同步失败；3：删除中；4：欠费已停用)
     */
    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIcInfoId() {
        return icInfoId;
    }

    public void setIcInfoId(String icInfoId) {
        this.icInfoId = icInfoId;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GuardIcInfo{" +
                ", id=" + id +
                ", icInfoId=" + icInfoId +
                ", deviceId=" + deviceId +
                ", status=" + status +
                "}";
    }
}
